HAL CEC types migration ¶
This section provides information about the HAL CEC types migration.
HAL CEC callback ID type definition ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_CEC_CallbackIDTypeDef
|
hal_cec_cb_t
|
Related concepts:
HAL CEC callback ID definition ¶
|
HAL1 |
HAL2 |
|---|---|
typedef enum
{
HAL_CEC_TX_CPLT_CB_ID
HAL_CEC_RX_CPLT_CB_ID
HAL_CEC_ERROR_CB_ID
HAL_CEC_MSPINIT_CB_ID
HAL_CEC_MSPDEINIT_CB_ID
} HAL_CEC_CallbackIDTypeDef;
|
|
Related concepts:
HAL CEC callback type definition ¶
|
HAL1 |
HAL2 |
|---|---|
pCEC_CallbackTypeDef
|
hal_cec_cb_t
|
Related concepts:
HAL CEC RX callback type definition ¶
|
HAL1 |
HAL2 |
|---|---|
pCEC_RxCallbackTypeDef
|
hal_cec_rx_cb_t
|
Related concepts:
HAL CEC handle type definition ¶
|
HAL1 |
HAL2 |
|---|---|
CEC_HandleTypeDef
|
hal_cec_handle_t
|
Related concepts:
HAL CEC initialization type definition ¶
|
HAL1 |
HAL2 |
|---|---|
typedef struct
{
uint16_t OwnAddress;
uint32_t SignalFreeTime;
uint32_t Tolerance;
uint32_t BRERxStop;
uint32_t BREErrorBitGen;
uint32_t LBPEErrorBitGen;
uint32_t BroadcastMsgNoErrorBitGen;
uint32_t SignalFreeTimeOption;
uint32_t ListenMode;
uint8_t *RxBuffer;
} CEC_InitTypeDef;
|
typedef struct
{
uint32_t own_addr;
} hal_cec_config_t;
The other members have been removed and replaced by individual APIs:
HAL_CEC_SetSignalFreeTimeStart()
HAL_CEC_SetRxTolerance()
HAL_CEC_EnableRxStopUponBitRisingErr()
HAL_CEC_EnableBitRisingErrGen()/HAL_CEC_DisableBitRisingErrGen()
HAL_CEC_EnableLongBitPeriodErrGen()/HAL_CEC_DisableLongBitPeriodErrGen()
HAL_CEC_EnableBroadcastErrGen()/HAL_CEC_DisableBroadcastErrGen()
HAL_CEC_SetSignalFreeTimeDuration()
HAL_CEC_SetListenMode()
HAL_CEC_SetRxBuffer()
|
Related concepts: